package model;

import java.util.ArrayList;


public class Server
{
	private ArrayList<User> users;
	
	public void login(String username, char[] password)
	{
		for (User user: users)
		{
			if (username.equals(user.getUsername()) && password.equals(user.getPassword()))
			{
				System.out.println(String.valueOf(password));
			}
		}
	}
	
	public void logout(User user)
	{
		for (User tmpUser: users)
		{
			if (user.getUsername().equals(tmpUser.getUsername()))
			{
				users.remove(user);
			}
		}
	}
}
